
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>编写插件 · ZanProxy</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="usage.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../quick-start/">
            
                <a href="../quick-start/">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../quick-start/pre-install.html">
            
                <a href="../quick-start/pre-install.html">
            
                    
                    前置条件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../quick-start/install.html">
            
                <a href="../quick-start/install.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../quick-start/launch.html">
            
                <a href="../quick-start/launch.html">
            
                    
                    启动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../quick-start/cert.html">
            
                <a href="../quick-start/cert.html">
            
                    
                    证书安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../configure/">
            
                <a href="../configure/">
            
                    
                    代理配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../configure/host.html">
            
                <a href="../configure/host.html">
            
                    
                    Host管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../configure/rule.html">
            
                <a href="../configure/rule.html">
            
                    
                    转发规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../configure/project.html">
            
                <a href="../configure/project.html">
            
                    
                    工程路径
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../configure/mock.html">
            
                <a href="../configure/mock.html">
            
                    
                    mock数据
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../usage/">
            
                <a href="../usage/">
            
                    
                    使用代理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../usage/chrome.html">
            
                <a href="../usage/chrome.html">
            
                    
                    chrome代理配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../usage/mobile.html">
            
                <a href="../usage/mobile.html">
            
                    
                    手机代理设置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../usage/enable.html">
            
                <a href="../usage/enable.html">
            
                    
                    规则启用/禁用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../usage/monitor.html">
            
                <a href="../usage/monitor.html">
            
                    
                    请求监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    自定义插件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.1" data-path="code.html">
            
                <a href="code.html">
            
                    
                    编写插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="usage.html">
            
                <a href="usage.html">
            
                    
                    使用插件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../gui/">
            
                <a href="../gui/">
            
                    
                    Mac 客户端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../gui/use.html">
            
                <a href="../gui/use.html">
            
                    
                    使用方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../gui/plugin/">
            
                <a href="../gui/plugin/">
            
                    
                    插件开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../gui/plugin/directory.html">
            
                <a href="../gui/plugin/directory.html">
            
                    
                    目录结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../gui/plugin/architecture.html">
            
                <a href="../gui/plugin/architecture.html">
            
                    
                    项目架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.3" data-path="../gui/plugin/type-system.html">
            
                <a href="../gui/plugin/type-system.html">
            
                    
                    类型系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4" >
            
                <span>
            
                    
                    插件开发指南
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.4.1" data-path="../gui/plugin/plugin-guide/start.html">
            
                <a href="../gui/plugin/plugin-guide/start.html">
            
                    
                    新建插件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4.2" data-path="../gui/plugin/plugin-guide/manager.html">
            
                <a href="../gui/plugin/plugin-guide/manager.html">
            
                    
                    Manager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.4.3" data-path="../gui/plugin/plugin-guide/renderer.html">
            
                <a href="../gui/plugin/plugin-guide/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6.2.5" >
            
                <span>
            
                    
                    API参考
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.5.1" data-path="../gui/plugin/api/main.html">
            
                <a href="../gui/plugin/api/main.html">
            
                    
                    Main
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.5.2" data-path="../gui/plugin/api/renderer.html">
            
                <a href="../gui/plugin/api/renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../cooperation/">
            
                <a href="../cooperation/">
            
                    
                    团队协作
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../cooperation/remoteRule.html">
            
                <a href="../cooperation/remoteRule.html">
            
                    
                    远程规则
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >编写插件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7F16;&#x5199;&#x63D2;&#x4EF6;">&#x7F16;&#x5199;&#x63D2;&#x4EF6;</h1>
<p>ZanProxy&#x63D2;&#x4EF6;&#x662F;&#x662F;&#x4E00;&#x4E2A;<strong>npm&#x5305;</strong>&#xFF0C;&#x8FD9;&#x4E2A;npm&#x5305;&#x9700;&#x8981;&#x5BFC;&#x51FA;&#x4E00;&#x4E2A;&#x7C7B;&#xFF0C;&#x8FD9;&#x4E2A;&#x7C7B;&#x8981;&#x5B9E;&#x73B0;&#x4E24;&#x4E2A;&#x65B9;&#x6CD5;&#xFF1A;<code>proxy</code>&#x548C;<code>manage</code>&#xFF0C;<strong>&#x9664;&#x6B64;&#x4E4B;&#x5916;&#x6CA1;&#x6709;&#x4EFB;&#x4F55;&#x7279;&#x6B8A;&#x8981;&#x6C42;</strong>&#x3002; <code>proxy</code>&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x8BF7;&#x6C42;&#x7684;&#x5904;&#x7406;&#xFF0C;<code>manage</code>&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x63D2;&#x4EF6;&#x7684;&#x914D;&#x7F6E;&#x3002;</p>
<p>&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x7684;&#x4F8B;&#x5B50;&#xFF1A;<a href="https://github.com/youzan/zan-proxy/tree/master/plugin-examples" target="_blank">&#x70B9;&#x51FB;&#x8FD9;&#x91CC;</a>&#x3002;</p>
<p><strong>&#x6CE8;&#x610F;</strong></p>
<p>&#x5199;&#x597D;ZanProxy&#x63D2;&#x4EF6;&#x5305;&#x540E;&#x9700;&#x8981;&#x53D1;&#x5305;&#xFF0C;&#x53EF;&#x4EE5;&#x53D1;&#x5E03;&#x5230;&#x79C1;&#x6709;&#x4ED3;&#x5E93;&#xFF0C;&#x6DFB;&#x52A0;&#x65F6;&#x53EF;&#x4EE5;&#x6307;&#x5B9A;&#x79C1;&#x6709;&#x4ED3;&#x5E93;&#x7684;&#x5730;&#x5740;&#x3002;</p>
<h2 id="proxy&#x65B9;&#x6CD5;">proxy&#x65B9;&#x6CD5;</h2>
<p>proxy&#x65B9;&#x6CD5;&#x9700;&#x8981;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;ZanProxy<code>&#x4E2D;&#x95F4;&#x4EF6;</code>&#xFF0C;&#x8BE5;<code>&#x4E2D;&#x95F4;&#x4EF6;</code>&#x4F1A;&#x88AB;&#x52A0;&#x8F7D;&#x5230;&#x4EE3;&#x7406;&#x670D;&#x52A1;&#x5668;&#x4E2D;&#x3002;</p>
<h3 id="&#x4E2D;&#x95F4;&#x4EF6;">&#x4E2D;&#x95F4;&#x4EF6;</h3>
<p>ZanProxy&#x4E2D;&#x95F4;&#x4EF6;&#x662F;&#x4E00;&#x4E2A;&#x5904;&#x7406;&#x8BF7;&#x6C42;&#x7684;&#x51FD;&#x6570;&#xFF0C;&#x5F62;&#x5982;<code>async (ctx, next) =&gt; {...}</code>&#x3002;&#x5176;&#x4E2D;<code>ctx</code>&#x662F;&#x8BF7;&#x6C42;&#x7684;&#x4E0A;&#x4E0B;&#x6587;&#xFF0C;&#x9ED8;&#x8BA4;&#x6709;&#x4E24;&#x4E2A;&#x5C5E;&#x6027;<code>req</code>&#x548C;<code>res</code>&#x3002;</p>
<p><code>req</code>&#x662F;&#x4E00;&#x4E2A;<code>http.IncomingMessage</code>&#x5B9E;&#x4F8B;&#xFF0C;&#x4EE3;&#x8868;&#x7740;&#x8BF7;&#x6C42;&#x3002;&#x5982;&#x679C;<code>req.body</code>&#x88AB;&#x8D4B;&#x503C;&#xFF0C;&#x5219;&#x8BF7;&#x6C42;&#x4F53;&#x7684;body&#x4F1A;&#x88AB;&#x66FF;&#x4EE3;&#x3002;&#x76EE;&#x524D;<code>req.body</code>&#x53EA;&#x652F;&#x6301;&#x5B57;&#x7B26;&#x4E32;&#x7C7B;&#x578B;&#x3002;</p>
<p><code>res</code>&#x662F;&#x4E00;&#x4E2A;<code>http.ServerResponse</code>&#x5B9E;&#x4F8B;&#xFF0C;&#x4EE3;&#x8868;&#x7740;&#x54CD;&#x5E94;&#x3002;&#x5982;&#x679C;<code>res.body</code>&#x88AB;&#x8D4B;&#x503C;&#xFF0C;&#x5219;&#x54CD;&#x5E94;&#x4F53;&#x7684;body&#x4F1A;&#x88AB;&#x66FF;&#x4EE3;&#xFF0C;<em>&#x4E14;&#x8BF7;&#x6C42;&#x4E0D;&#x4F1A;&#x88AB;&#x8F6C;&#x53D1;</em>&#x3002;<code>res.body</code></p>
<h4 id="&#x6DFB;&#x52A0;access-control-allow-origin&#x54CD;&#x5E94;&#x5934;&#x7684;&#x4E2D;&#x95F4;&#x4EF6;&#x7684;&#x4F8B;&#x5B50;">&#x6DFB;&#x52A0;Access-Control-Allow-Origin&#x54CD;&#x5E94;&#x5934;&#x7684;&#x4E2D;&#x95F4;&#x4EF6;&#x7684;&#x4F8B;&#x5B50;</h4>
<pre><code class="lang-javascript">    <span class="hljs-keyword">async</span> (ctx, next) =&gt; {
        ctx.res.setHeader(<span class="hljs-string">&apos;Access-Control-Allow-Origin&apos;</span>, <span class="hljs-string">&apos;*&apos;</span>);
        <span class="hljs-keyword">await</span> next()
    }
</code></pre>
<h2 id="manage&#x65B9;&#x6CD5;">manage&#x65B9;&#x6CD5;</h2>
<p>manage&#x65B9;&#x6CD5;&#x9700;&#x8981;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;Koa&#x7684;App&#xFF0C;&#x8BE5;app&#x4F1A;&#x88AB;&#x6302;&#x8F7D;&#x5230;ZanProxy&#x7BA1;&#x7406;&#x670D;&#x52A1;&#x5668;&#x7684;<code>/plugins/{&#x63D2;&#x4EF6;&#x540D;}</code>&#x8DEF;&#x5F84;&#xFF0C;&#x7528;&#x4E8E;&#x63D2;&#x4EF6;&#x7684;&#x53EF;&#x89C6;&#x5316;&#x6570;&#x636E;&#x7BA1;&#x7406;&#x3002;&#x8BE5;app&#x53EF;&#x4EE5;&#x6709;&#x81EA;&#x5DF1;&#x7684;http&#x63A5;&#x53E3;&#x548C;&#x9759;&#x6001;&#x8D44;&#x6E90;&#x3002;</p>
<h3 id="&#x7BA1;&#x7406;access-control-allow-origin&#x54CD;&#x5E94;&#x5934;&#x6570;&#x636E;&#x7684;manage&#x4F8B;&#x5B50;">&#x7BA1;&#x7406;Access-Control-Allow-Origin&#x54CD;&#x5E94;&#x5934;&#x6570;&#x636E;&#x7684;manage&#x4F8B;&#x5B50;</h3>
<pre><code class="lang-javascript">    manage() {
        <span class="hljs-keyword">const</span> router = <span class="hljs-keyword">new</span> Router();
        <span class="hljs-keyword">const</span> root = path.join(__dirname, <span class="hljs-string">&apos;../ui/site/&apos;</span>) <span class="hljs-comment">// &#x9759;&#x6001;&#x9875;&#x9762;&#x7684;&#x8DEF;&#x5F84;</span>
        router.post(<span class="hljs-string">&apos;/save&apos;</span>, <span class="hljs-keyword">async</span> ctx =&gt; {
            <span class="hljs-keyword">const</span> cors = ctx.request.body.cors;
            <span class="hljs-keyword">this</span>.cors = cors;
            ctx.body = {
                status: <span class="hljs-number">200</span>,
                msg: <span class="hljs-string">&apos;OK&apos;</span>
            }
        })
        router.get(<span class="hljs-string">&apos;/cors&apos;</span>, <span class="hljs-keyword">async</span> ctx =&gt; {
            ctx.body = {
                status: <span class="hljs-number">200</span>,
                msg: <span class="hljs-string">&apos;OK&apos;</span>,
                data: {
                    cors: <span class="hljs-keyword">this</span>.cors
                }
            }
        })
        <span class="hljs-keyword">const</span> app = <span class="hljs-keyword">new</span> Koa()
        app
            .use(bodyparser())
            .use(router.routes())
            .use(router.allowedMethods())
            .use(KoaStatic(root))
        <span class="hljs-keyword">return</span> app;
    }
</code></pre>
<h2 id="&#x5B8C;&#x6574;&#x7684;&#x6DFB;&#x52A0;access-control-allow-origin&#x54CD;&#x5E94;&#x5934;&#x7684;&#x63D2;&#x4EF6;&#x7684;&#x4F8B;&#x5B50;">&#x5B8C;&#x6574;&#x7684;&#x6DFB;&#x52A0;Access-Control-Allow-Origin&#x54CD;&#x5E94;&#x5934;&#x7684;&#x63D2;&#x4EF6;&#x7684;&#x4F8B;&#x5B50;</h2>
<pre><code class="lang-javascript">    <span class="hljs-keyword">const</span> Router = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;koa-router&apos;</span>);
    <span class="hljs-keyword">const</span> KoaStatic = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;koa-static&apos;</span>);
    <span class="hljs-keyword">const</span> path = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;path&apos;</span>);
    <span class="hljs-keyword">const</span> bodyparser = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;koa-bodyparser&apos;</span>);
    <span class="hljs-keyword">const</span> Koa = <span class="hljs-built_in">require</span>(<span class="hljs-string">&apos;koa&apos;</span>);

    <span class="hljs-built_in">module</span>.exports = <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">CorsPlugin</span> </span>{
        <span class="hljs-keyword">constructor</span>() {
            <span class="hljs-keyword">this</span>.cors = <span class="hljs-string">&apos;*&apos;</span>
        }
        manage() {
            <span class="hljs-keyword">const</span> router = <span class="hljs-keyword">new</span> Router();
            <span class="hljs-keyword">const</span> root = path.join(__dirname, <span class="hljs-string">&apos;../ui/site/&apos;</span>) <span class="hljs-comment">// &#x9759;&#x6001;&#x9875;&#x9762;&#x7684;&#x8DEF;&#x5F84;</span>
            router.post(<span class="hljs-string">&apos;/save&apos;</span>, <span class="hljs-keyword">async</span> ctx =&gt; {
                <span class="hljs-keyword">const</span> cors = ctx.request.body.cors;
                <span class="hljs-keyword">this</span>.cors = cors;
                ctx.body = {
                    status: <span class="hljs-number">200</span>,
                    msg: <span class="hljs-string">&apos;OK&apos;</span>
                }
            })
            router.get(<span class="hljs-string">&apos;/cors&apos;</span>, <span class="hljs-keyword">async</span> ctx =&gt; {
                ctx.body = {
                    status: <span class="hljs-number">200</span>,
                    msg: <span class="hljs-string">&apos;OK&apos;</span>,
                    data: {
                        cors: <span class="hljs-keyword">this</span>.cors
                    }
                }
            })
            <span class="hljs-keyword">const</span> app = <span class="hljs-keyword">new</span> Koa()
            app
                .use(bodyparser())
                .use(router.routes())
                .use(router.allowedMethods())
                .use(KoaStatic(root))
            <span class="hljs-keyword">return</span> app;
        }
        proxy() {
            <span class="hljs-keyword">return</span> <span class="hljs-keyword">async</span> (ctx, next) =&gt; {
                ctx.res.setHeader(<span class="hljs-string">&apos;Access-Control-Allow-Origin&apos;</span>, <span class="hljs-keyword">this</span>.cors || <span class="hljs-string">&apos;*&apos;</span>);
                <span class="hljs-keyword">await</span> next()
            }
        }
    }
</code></pre>
<p><img src="https://img.yzcdn.cn/public_files/2018/04/20/02a9d0f12242ef24cd81c30e504ed1fe.png"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 自定义插件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="usage.html" class="navigation navigation-next " aria-label="Next page: 使用插件">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"编写插件","level":"1.5.1","depth":2,"next":{"title":"使用插件","level":"1.5.2","depth":2,"path":"plugin/usage.md","ref":"plugin/usage.md","articles":[]},"previous":{"title":"自定义插件","level":"1.5","depth":1,"path":"plugin/README.md","ref":"plugin/README.md","articles":[{"title":"编写插件","level":"1.5.1","depth":2,"path":"plugin/code.md","ref":"plugin/code.md","articles":[]},{"title":"使用插件","level":"1.5.2","depth":2,"path":"plugin/usage.md","ref":"plugin/usage.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":[],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":[]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"ZanProxy","links":{"gitbook":false,"sharing":{"google":false,"facebook":false,"twitter":false,"all":false}},"gitbook":"*"},"file":{"path":"plugin/code.md","mtime":"2018-11-27T06:32:51.877Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-03-08T06:08:21.743Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

